package cn.samler.shopapi.Mapper;

import cn.samler.shopapi.Entity.Address;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {
    Boolean insertAddress(@Param("uid") int uid, @Param("address") Address address);

    Boolean updateAddress(@Param("uid") int uid, @Param("address") Address address);

    Boolean deleteAddress(@Param("uid") int uid, @Param("id") int id);

    List<Address> getAddressAll(int uid);

    Address getAddressById(@Param("uid") int uid, @Param("id") int id);

    Boolean setDefaultAddress(@Param("uid") int uid, @Param("id") int id);
}
